#!/bin/bash
apt_file="/etc/apt/sources.list"
#mod_script="sed 's/^deb/#deb/g' -i /etc/apt/sources.list"
ulog="/home/aqdms/CARBLogger_upgrade_log"
checkfile="/home/aqdms/CARBLog/sys_resources/upgrade_scripts/.update_apt"
cdate=`date`

if [ ! -e "$checkfile" ]; then
		if ( sed 's/^deb/#deb/g' -i /etc/apt/sources.list ); then
			echo "$cdate : UPDATE APT " >> $ulog
			echo "ran $mod_script the repository listing" >> $ulog
			touch "$checkfile"
		else
			echo "cdate : UPDATE APT " >> $ulog
			echo "FAILURE TO UPDATE APT"
		fi
fi